package com.aizuda.boot.modules.business.performancePlan.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 货币转换响应DTO
 * 
 * @author yangshen
 * @date 2025-08-04
 */
@Data
@Schema(description = "货币转换响应结果")
public class CurrencyConversionResponseDTO {

    @Schema(description = "转换后的人民币总金额", example = "680.50")
    private BigDecimal totalAmountCny;

    @Schema(description = "转换详情列表")
    private List<ConversionDetailDTO> conversionDetails;

    @Data
    @Schema(description = "转换详情")
    public static class ConversionDetailDTO {
        
        @Schema(description = "原始金额", example = "100.00")
        private BigDecimal originalAmount;
        
        @Schema(description = "原始货币代码", example = "USD")
        private String originalCurrency;
        
        @Schema(description = "转换后的人民币金额", example = "680.50")
        private BigDecimal convertedAmount;
        
        @Schema(description = "汇率", example = "6.805")
        private BigDecimal exchangeRate;
    }
}